package cn.com.byte1024.service.impl;

import cn.com.byte1024.entity.RegisterLog;
import cn.com.byte1024.mapper.RegisterLogMapper;
import cn.com.byte1024.service.RegisterLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ProjectName: VoteSystem
 * @ClassName: RegisterLogServiceImpl
 * @Description:
 * @Author: Kwnda
 * @Date: 2021/1/4 16:25
 */
@Service
public class RegisterLogServiceImpl implements RegisterLogService {
    
    @Autowired
    private RegisterLogMapper registerLogMapper;

    @Override
    public List<RegisterLog> selectRegisterLogByPhone(String phone) {
        return registerLogMapper.selectRegisterLogByPhone(phone);
    }

    @Override
    public int saveRegisterCode(RegisterLog log) {
        return registerLogMapper.saveRegisterCode(log);
    }

    @Override
    public List<RegisterLog> selectRegisterLogByCode(String phone, String code) {
        return registerLogMapper.selectRegisterLogByCode(phone,code);
    }

    @Override
    public int updateRegister(RegisterLog log) {
        return registerLogMapper.updateRegister(log);
    }
}
